package cn.itsource.org.domain;

public class Department {

    /*主键*/
    private Long id;
    /*部门编号*/
    private String sn;
    /*部门名称*/
    private String name;
    /*暂时不用*/
    private String dirPath;
    /*部门状态 0 正常 ，-1 停用*/
    private Integer state;
    /*部门经理 和员工关联*/
    private Employee manager;

    private Integer manager_id;
    /*上级部门

    private String parent_id;*/

    public Department() {
    }

    public Department(Long id, String sn, String name, String dirPath, Integer state, Employee manager, Integer manager_id) {
        this.id = id;
        this.sn = sn;
        this.name = name;
        this.dirPath = dirPath;
        this.state = state;
        this.manager = manager;
        this.manager_id = manager_id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDirPath() {
        return dirPath;
    }

    public void setDirPath(String dirPath) {
        this.dirPath = dirPath;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Employee getManager() {
        return manager;
    }

    public void setManager(Employee manager) {
        this.manager = manager;
    }

    public Integer getManager_id() {
        return manager_id;
    }

    public void setManager_id(Integer manager_id) {
        this.manager_id = manager_id;
    }

    @Override
    public String toString() {
        return "Department{" +
                "id=" + id +
                ", sn='" + sn + '\'' +
                ", name='" + name + '\'' +
                ", dirPath='" + dirPath + '\'' +
                ", state=" + state +
                ", manager='" + manager + '\'' +
                ", manager_id='" + manager_id + '\'' +
                '}';
    }
}
